.class Lcom/nemustech/regina/DialogCareSecret$3;
.super Ljava/lang/Object;
.source "DialogCareSecret.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/regina/DialogCareSecret;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/DialogCareSecret;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/DialogCareSecret;)V
    .locals 0
    .parameter

    .prologue
    .line 219
    iput-object p1, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 12
    .parameter "v"

    .prologue
    const/4 v11, 0x3

    const/4 v8, 0x2

    const/4 v10, 0x1

    const/4 v9, 0x0

    .line 222
    iget-object v6, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v6}, Lcom/nemustech/regina/DialogCareSecret;->access$400(Lcom/nemustech/regina/DialogCareSecret;)I

    move-result v6

    iget-object v7, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v7}, Lcom/nemustech/regina/DialogCareSecret;->access$100(Lcom/nemustech/regina/DialogCareSecret;)[I

    move-result-object v7

    array-length v7, v7

    if-ge v6, v7, :cond_4

    .line 223
    iget-object v6, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v6}, Lcom/nemustech/regina/DialogCareSecret;->access$500(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/SecretDialogFrame;

    move-result-object v6

    invoke-virtual {v6}, Lcom/nemustech/regina/SecretDialogFrame;->getSecretPointChecker()Lcom/nemustech/regina/SecretPointChecker;

    move-result-object v0

    .line 225
    .local v0, checker:Lcom/nemustech/regina/SecretPointChecker;
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v6

    packed-switch v6, :pswitch_data_0

    .line 245
    :goto_0
    iget-object v6, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v6}, Lcom/nemustech/regina/DialogCareSecret;->access$100(Lcom/nemustech/regina/DialogCareSecret;)[I

    move-result-object v6

    invoke-static {v6}, Lcom/nemustech/regina/RUtils;->convertIntArrayToString([I)Ljava/lang/String;

    move-result-object v3

    .line 246
    .local v3, password:Ljava/lang/String;
    const-string v6, "131422134"

    invoke-virtual {v3, v6}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v6

    invoke-static {}, Lcom/nemustech/regina/DialogCareSecret;->access$600()Z

    move-result v7

    if-nez v7, :cond_1

    move v7, v10

    :goto_1
    and-int/2addr v6, v7

    if-eqz v6, :cond_0

    .line 247
    invoke-static {v10}, Lcom/nemustech/regina/DialogCareSecret;->access$602(Z)Z

    .line 249
    iget-object v6, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v6}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v6

    invoke-virtual {v6}, Lcom/nemustech/regina/ReginaLauncherSettings;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    .line 250
    .local v1, context:Landroid/content/Context;
    const v6, 0x7f070001

    invoke-virtual {v1, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v1, v6, v9}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v5

    .line 251
    .local v5, sharedPref:Landroid/content/SharedPreferences;
    const-string v6, "regina.launcher.modev"

    invoke-interface {v5, v6, v9}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v6

    if-nez v6, :cond_2

    move v2, v10

    .line 253
    .local v2, mode:Z
    :goto_2
    invoke-interface {v5}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    .line 254
    .local v4, sharedEditor:Landroid/content/SharedPreferences$Editor;
    const-string v6, "regina.launcher.modev"

    invoke-interface {v4, v6, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 255
    invoke-interface {v4}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 257
    iget-object v6, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v6}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v6

    invoke-virtual {v6}, Lcom/nemustech/regina/ReginaLauncherSettings;->getApplicationContext()Landroid/content/Context;

    move-result-object v6

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "Developer Mode "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    if-eqz v2, :cond_3

    const-string v8, "On"

    :goto_3
    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Lcom/nemustech/regina/RUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)Landroid/widget/Toast;

    .line 263
    .end local v0           #checker:Lcom/nemustech/regina/SecretPointChecker;
    .end local v1           #context:Landroid/content/Context;
    .end local v2           #mode:Z
    .end local v3           #password:Ljava/lang/String;
    .end local v4           #sharedEditor:Landroid/content/SharedPreferences$Editor;
    .end local v5           #sharedPref:Landroid/content/SharedPreferences;
    :cond_0
    :goto_4
    return-void

    .line 227
    .restart local v0       #checker:Lcom/nemustech/regina/SecretPointChecker;
    :pswitch_0
    iget-object v6, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v6}, Lcom/nemustech/regina/DialogCareSecret;->access$100(Lcom/nemustech/regina/DialogCareSecret;)[I

    move-result-object v6

    iget-object v7, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v7}, Lcom/nemustech/regina/DialogCareSecret;->access$408(Lcom/nemustech/regina/DialogCareSecret;)I

    move-result v7

    aput v10, v6, v7

    .line 228
    invoke-virtual {v0, v9}, Lcom/nemustech/regina/SecretPointChecker;->selectHighlight(I)V

    goto :goto_0

    .line 231
    :pswitch_1
    iget-object v6, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v6}, Lcom/nemustech/regina/DialogCareSecret;->access$100(Lcom/nemustech/regina/DialogCareSecret;)[I

    move-result-object v6

    iget-object v7, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v7}, Lcom/nemustech/regina/DialogCareSecret;->access$408(Lcom/nemustech/regina/DialogCareSecret;)I

    move-result v7

    aput v8, v6, v7

    .line 232
    invoke-virtual {v0, v10}, Lcom/nemustech/regina/SecretPointChecker;->selectHighlight(I)V

    goto/16 :goto_0

    .line 235
    :pswitch_2
    iget-object v6, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v6}, Lcom/nemustech/regina/DialogCareSecret;->access$100(Lcom/nemustech/regina/DialogCareSecret;)[I

    move-result-object v6

    iget-object v7, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v7}, Lcom/nemustech/regina/DialogCareSecret;->access$408(Lcom/nemustech/regina/DialogCareSecret;)I

    move-result v7

    aput v11, v6, v7

    .line 236
    invoke-virtual {v0, v8}, Lcom/nemustech/regina/SecretPointChecker;->selectHighlight(I)V

    goto/16 :goto_0

    .line 239
    :pswitch_3
    iget-object v6, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v6}, Lcom/nemustech/regina/DialogCareSecret;->access$100(Lcom/nemustech/regina/DialogCareSecret;)[I

    move-result-object v6

    iget-object v7, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v7}, Lcom/nemustech/regina/DialogCareSecret;->access$408(Lcom/nemustech/regina/DialogCareSecret;)I

    move-result v7

    const/4 v8, 0x4

    aput v8, v6, v7

    .line 240
    invoke-virtual {v0, v11}, Lcom/nemustech/regina/SecretPointChecker;->selectHighlight(I)V

    goto/16 :goto_0

    .restart local v3       #password:Ljava/lang/String;
    :cond_1
    move v7, v9

    .line 246
    goto/16 :goto_1

    .restart local v1       #context:Landroid/content/Context;
    .restart local v5       #sharedPref:Landroid/content/SharedPreferences;
    :cond_2
    move v2, v9

    .line 251
    goto/16 :goto_2

    .line 257
    .restart local v2       #mode:Z
    .restart local v4       #sharedEditor:Landroid/content/SharedPreferences$Editor;
    :cond_3
    const-string v8, "Off"

    goto :goto_3

    .line 260
    .end local v0           #checker:Lcom/nemustech/regina/SecretPointChecker;
    .end local v1           #context:Landroid/content/Context;
    .end local v2           #mode:Z
    .end local v3           #password:Ljava/lang/String;
    .end local v4           #sharedEditor:Landroid/content/SharedPreferences$Editor;
    .end local v5           #sharedPref:Landroid/content/SharedPreferences;
    :cond_4
    iget-object v6, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v6}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v6

    invoke-virtual {v6}, Lcom/nemustech/regina/ReginaLauncherSettings;->getApplicationContext()Landroid/content/Context;

    move-result-object v6

    iget-object v7, p0, Lcom/nemustech/regina/DialogCareSecret$3;->this$0:Lcom/nemustech/regina/DialogCareSecret;

    invoke-static {v7}, Lcom/nemustech/regina/DialogCareSecret;->access$000(Lcom/nemustech/regina/DialogCareSecret;)Lcom/nemustech/regina/ReginaLauncherSettings;

    move-result-object v7

    invoke-virtual {v7}, Lcom/nemustech/regina/ReginaLauncherSettings;->getApplicationContext()Landroid/content/Context;

    move-result-object v7

    const v8, 0x7f070080

    invoke-virtual {v7, v8}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Lcom/nemustech/regina/RUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)Landroid/widget/Toast;

    goto :goto_4

    .line 225
    :pswitch_data_0
    .packed-switch 0x7f09003f
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method
